<?php

namespace App\Models;

use Framework\BaseModel;

/**
 * App\Models\_EmptyModel
 *
 * @method static \Illuminate\Database\Eloquent\Builder|_EmptyModel newModelQuery()
 * @method static \Illuminate\Database\Eloquent\Builder|_EmptyModel newQuery()
 * @method static \Illuminate\Database\Eloquent\Builder|_EmptyModel query()
 * @mixin \Eloquent
 * @property int $id
 * @property string $title 新闻标题
 * @property string $title_alias 别名
 * @property string $head_img 头图
 * @property int $author_id 作者id
 * @property int $news_class_id_root 新闻顶分类id
 * @property int $news_class_id 新闻分类id
 * @property int $like_times 点赞数
 * @property int $share_times 分享数
 * @property int $view_times 浏览量
 * @property int $collect_times 收藏数
 * @property string|null $tags 标签
 * @property int $is_elite 是否加精0=否 1=是
 * @property int $status 状态 0-下线 1-上线
 * @property int $sort 排序
 * @property \Illuminate\Support\Carbon|null $created_at
 * @property \Illuminate\Support\Carbon|null $updated_at
 * @method static \Illuminate\Database\Eloquent\Builder|NewsModel whereAuthorId($value)
 * @method static \Illuminate\Database\Eloquent\Builder|NewsModel whereCollectTimes($value)
 * @method static \Illuminate\Database\Eloquent\Builder|NewsModel whereCreatedAt($value)
 * @method static \Illuminate\Database\Eloquent\Builder|NewsModel whereHeadImg($value)
 * @method static \Illuminate\Database\Eloquent\Builder|NewsModel whereId($value)
 * @method static \Illuminate\Database\Eloquent\Builder|NewsModel whereIsElite($value)
 * @method static \Illuminate\Database\Eloquent\Builder|NewsModel whereLikeTimes($value)
 * @method static \Illuminate\Database\Eloquent\Builder|NewsModel whereNewsClassId($value)
 * @method static \Illuminate\Database\Eloquent\Builder|NewsModel whereNewsClassIdRoot($value)
 * @method static \Illuminate\Database\Eloquent\Builder|NewsModel whereShareTimes($value)
 * @method static \Illuminate\Database\Eloquent\Builder|NewsModel whereSort($value)
 * @method static \Illuminate\Database\Eloquent\Builder|NewsModel whereStatus($value)
 * @method static \Illuminate\Database\Eloquent\Builder|NewsModel whereTags($value)
 * @method static \Illuminate\Database\Eloquent\Builder|NewsModel whereTitle($value)
 * @method static \Illuminate\Database\Eloquent\Builder|NewsModel whereTitleAlias($value)
 * @method static \Illuminate\Database\Eloquent\Builder|NewsModel whereUpdatedAt($value)
 * @method static \Illuminate\Database\Eloquent\Builder|NewsModel whereViewTimes($value)
 * @property string $content 内容
 * @method static \Illuminate\Database\Eloquent\Builder|NewsModel whereContent($value)
 */
class NewsModel extends BaseModel
{
    protected $table = 'news';
    protected $casts = [

        'tags'   => 'json',

    ];
}
